package com.jfinal.weixin.ext.menu;  

import java.util.ArrayList;
import java.util.List;
  
/** 
 * 菜单 
 *  
 * @author 张龙 
 * @date 2017-12-26 
 */  
public class Menu {  
    private List<Button> button = new ArrayList<Button>(3);
    public void addButton(Button button){
    	if(this.button.size()>=3){
    		throw new RuntimeException("创建的菜单数不能大于3个");
    	}
    	this.button.add(button);
    }
	public List<Button> getButton() {
		return button;
	}
	public void setButton(List<Button> button) {
		this.button = button;
	}
}  